<?xml version="1.0" encoding="UTF-8"?>
<mappings xmlns="http://dozer.sourceforge.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://dozer.sourceforge.net
          http://dozer.sourceforge.net/schema/beanmapping.xsd">

    <mapping >
        <class-a>com.tmptSource.bean.${classNameFirstWordUpper}</class-a>
        <class-b>com.tmptSource.dto.${classNameFirstWordUpper}Dto</class-b>


    <#list columnList as column>
        <#if column.columnType4JavaEncap=='Timestamp'>
        <field custom-converter="com.tmptSource.utils.dozer.DateConverter" custom-converter-param="<#if column.dataTransfer=='date'>yyyy-MM-dd<#else>yyyy-MM-dd HH:mm:ss</#if>">
        <#elseif column.dataTransfer=='fen2yuan' && column.columnType4JavaEncap=='Long'>
        <field custom-converter="com.tmptSource.utils.dozer.FenAndYuan4LongConverter">
        <#elseif column.dataTransfer=='fen2yuan' && column.columnType4JavaEncap=='Integer'>
        <field custom-converter="com.tmptSource.utils.dozer.FenAndYuan4IntConverter">
        <#elseif column.dataResource==1 || column.dataResource==4>
        <field>
        <#elseif column.dataResource==5>
        <field>
        <#else>
        <field>
        </#if>
            <a>${column.propertyName}</a>
            <b>${column.propertyName}</b>
        </field>
    </#list>
    <#list columnList as column>
    <#if column.columnType4JavaEncap=='Timestamp' || column.queryType=='between'>
        <#if column.columnType4JavaEncap=='Timestamp'>
        <field custom-converter="com.tmptSource.utils.dozer.DateConverter" custom-converter-param="<#if column.dataTransfer=='date'>yyyy-MM-dd<#else>yyyy-MM-dd HH:mm:ss</#if>">
        <#elseif column.dataTransfer=='fen2yuan' && column.columnType4JavaEncap=='Long'>
        <field custom-converter="com.tmptSource.utils.dozer.FenAndYuan4LongConverter">
        <#elseif column.dataTransfer=='fen2yuan' && column.columnType4JavaEncap=='Integer'>
        <field custom-converter="com.tmptSource.utils.dozer.FenAndYuan4IntConverter">
        <#elseif column.dataResource==1 || column.dataResource==4>
        <field>
        <#elseif column.dataResource==5>
        <field>
        <#else>
        <field>
        </#if>
            <a>${column.propertyName}_Start</a>
            <b>${column.propertyName}_Start</b>
        </field>
        <#if column.columnType4JavaEncap=='Timestamp'>
        <field custom-converter="com.tmptSource.utils.dozer.DateConverter" custom-converter-param="<#if column.dataTransfer=='date'>yyyy-MM-dd<#else>yyyy-MM-dd 23:59:59</#if>">
        <#elseif column.dataTransfer=='fen2yuan' && column.columnType4JavaEncap=='Long'>
        <field custom-converter="com.tmptSource.utils.dozer.FenAndYuan4LongConverter">
        <#elseif column.dataTransfer=='fen2yuan' && column.columnType4JavaEncap=='Integer'>
        <field custom-converter="com.tmptSource.utils.dozer.FenAndYuan4IntConverter">
        <#elseif column.dataResource==1 || column.dataResource==4>
        <field>
        <#elseif column.dataResource==5>
        <field>
        <#else>
        <field>
        </#if>
            <a>${column.propertyName}_End</a>
            <b>${column.propertyName}_End</b>
        </field>
    </#if>
    </#list>

    </mapping>

</mappings>